var express = require('express');
var router = express.Router();

router.get('/getValidataCode', function(req, res, next) {
    var code = parseInt(Math.random()*(9999-1000) + 1000);
    console.log(code);
    res.send({"code":code});
});

module.exports = router;
